package com.example.nettyclient.respone;

import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 *
 * @author : zjs
 * @Date: 2021/4/29 18:19
 * Description:
 */
@Data
@Component
public class ResponseResult {
    private String msg;

    private String code;

    public static ResponseResult success(String msg,String code){
        ResponseResult responseResult = new ResponseResult();
        responseResult.setMsg(msg);
        responseResult.setCode(code);
        return responseResult;
    }
}
